/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*-  */
/*
 * catchit
 * Copyright (C) 2013 Ryan Grinkewitz <graphite@Toto>
 * 
 */

#ifndef _EVENT_MANAGER_H_
#define _EVENT_MANAGER_H_

#include "SDL/SDL.h"
#include "constants.h"


class EventManager
{
public:
	static EventManager* getInstance();

	void processEvent();
	Action getEventAction();
	Action getRandomAction();
protected:

private:
	EventManager():eventAction(DO_NOTHING){};	
	Action eventAction;

	EventManager(EventManager const&){};
	EventManager& operator=(EventManager const&){};  
	static EventManager* eventManagerInstance;

	void handleEvent(SDL_Event* keyboard_event);
	
	SDL_Event event;
};

#endif // _EVENT_MANAGER_H_

